package com.example.demo1109.demo3;

import com.example.demo1109.demo3.Actor;

public class Test {
    public static void main(String[] args) {
        Broker broker = new Broker(new Actor());
        Actor actor = (Actor) broker.getInstance();
        actor.dance();
        actor.sing();
    }
}
